/*
 * @Author: your name
 * @Date: 2021-12-23 14:22:06
 * @LastEditTime: 2021-12-23 16:18:52
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \json-serveg:\桌面2\50htmljs\faq\script.js
 */

const toggles = document.querySelectorAll('.faq-toggle')

toggles.forEach(items=>{
    items.addEventListener('click',()=>{
        items.parentNode.classList.toggle('active')
    })
})